<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>Add Available Truck In Bound </title>
<?php echo link_tag(my_url().'skin.css'); ?>
<?php echo link_tag(my_url().'tcal.css'); ?>
<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>tcal.js"></script> 
<script type="text/javascript" src="<?php echo my_url(); ?>scripts/jquery-1.2.6.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>scripts/jquery.formatCurrency.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>scripts/jquery.formatCurrency-1.4.0.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>scr/jquery.formatCurrency.all.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>scripts/jquery.formatCurrency-1.4.0.js"></script>
<script type="text/javascript" src="../js/1.js"></script>

<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo my_url(); ?>jquery.js"></script>



<script language="javascript" type="text/javascript">

 var BaseURL='<?php echo base_url(); ?>';

function redirect(location){
	window.location.href= location;
}
$(document).ready(function(){

 	$("#dv_company_name").change(function(){				

		var _url= BaseURL + "at_o_state/p_getinfo?dv_company_name=" + this.value;

		$.post(_url,"",callbackdisplay);

	});

});

  	

function callbackdisplay(data,status){

		if(status=="success"){
			
			$("#cell_phone_num").val(data.cell_phone_num);
			
			$("#f_name").val(data.f_name);

			$("#type_of_truck").val(data.type_of_truck);		

			$("#mc_num").val(data.mc_num);		

		}

}

</script>

<script type="text/javascript" src="<?php echo my_url(); ?>jquery-latest.pack.js"></script>
<link rel="stylesheet" type="text/css" href="tcal.css" />
<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="skin.css" rel="stylesheet" type="text/css" />
</head>
<?php
//echo $_SESSION['administrator_log']."============";
if(!isset($_SESSION['administrator_log']))
{
		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";
}

else

{

?>

<body >

	<div class="BodyCover">

 		<div class="ParentContent">

	        <?php require("admin_menu.php"); ?>

			<div class="MenuTab">

    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        

             </div>

			<div class="title"> <h1>Add Available Truck In Bound  </h1></div>

			<div class="module-index01">

		  		<div align="right"><a href="<?php echo base_url();?>admin/logout" style="color:#FF0000;">logout</a></div><br/>

  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>



                <form action="<?php echo base_url()?>at_n_ca/p_add_at_n_ca" method="post">

                <?php if(isset($data_exist)){ echo "<p><label style='color:#F00;'>$data_exist</label></p>";} ?>

                    <label>Load_no:</label><input name="txtload_no" /> <br />
                    <label>Phone Number:</label><input name="txtcell_phone_num" id="cell_phone_num" /> <br />
                    <label>Name:</label><input name="txtf_name" id="f_name" /> <br />
                    <label>Driver / Vendor:</label> <?php  echo select_list("dv_profile","dv_company_name","dv_company_name","profile_type='DV'","","name='dv_company_name' id='dv_company_name' ",""); ?>  <br />
                    <label>City:</label><input name="txtdrop_off_city" /> <br />
                    <label>State:</label> <?php  echo select_list("state","state","state","state_id","state ASC","name=txtdrop_off_state",""); ?>  <br />
                    <label>Date:</label><input name="txtdrop_off_date" class="tcal"  /><br />
                    <label>Type of Truck:</label> <input name="txttype_of_truck" id="type_of_truck"  /> <br />
                    <label>MC #:</label>  <input name="txtmc_num" id="mc_num"  /> <br />
                    <label>Des_City:</label> <input name="txtdes_city"  /><br />
                    <label>Des_State:</label> <?php  echo select_list("state","state","state","state_id","state ASC","name=txtdes_state",""); ?><br />
                    <label>Des_Zone:</label><input name="txtdes_zone" /><br />
                    <label>Select:</label> <input type="checkbox"  name="select"/> <br />
                    <label>Note:</label> <textarea  name="note"/> </textarea> <br />                    

                   <input type="submit"  value="Save" name="cmdsave">

                   <input type="button"  value="Cancel" onclick="redirect(BaseURL+'at_o_state')" name="cmdcancel">

				</form>
    		<br>
            <div class="BodyContent">

            </div>	

			    		

		    <div class="Footer1">	

                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>

                 <a href="http://webmartis.com"> <img src="<?php echo my_url();?>/images/wmlink.png"></a>

                 

                </div>                

            </div> <!---end of Footer1 ---->        

            

		</div><!---end of ParentContent ---->

    </div> <!---end of BodyCover ---->

</body>

<?php } ?>

</html>



